package com.itlong.cloud.noncore.commons;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <desc>
 *      系统操作日志转移冷表数据
 * </desc>
 *
 * @createDate 2018/1/18
 */
@FeignClient("non-core-service")
public interface ITimeTaskOfOperationLogServiceClient {

    /**
     * <desc>
     *     系统操作日志定时转移至冷表数据
     * </desc>
     * @return
     * @author cuiduanwu
     * @createDate 2018/1/18
     */
    @RequestMapping(path = "/timeTask/operationLogProcess",method = RequestMethod.POST)
    boolean timTaskOfOperationLogProcess() throws Exception;

    /**
     * <desc>
     *      定时任务定期清理数据
     * </desc>
     *
     * @author wangzhi
     * @createDate 2019/09/04
     */
    @RequestMapping(path = "/timeTask/regularCleanData",method = RequestMethod.POST)
    void regularCleanData() throws Exception;
}
